package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * @Author:Panghl
 * @Description: 封装页面所有可能传递过来的查询条件
 * @Date: Created in 14:12 2022/7/2
 * @Modified By:
 *
 * catalog3Id=325 & keyword=小米 &sort=saleCount_asc
 */
@Data
public class SearchParam {

    private String keyword; //页面传递过来的全文匹配关键字

    private Long catalog3Id; //三级分类id

    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort; //排序条件


    /**
     * 过滤条件
     * hasStock（是否有货）： hasStock=0/1
     * skuPrice区间：skuPrice=1_500/_500/500_
     * brandId: brandId=1
     * catalog3Id: catalog3Id=325
     * attrs: attrs=1_其他:安卓&attrs=2_5.5寸:6寸
     */
    private Integer hasStock; //是否只显示有货

    private String skuPrice; //价格区间

    private List<Long> brandId; //品牌id,按照品牌进行查询，可多选

    private List<String> attrs; //属性,按照属性进行筛选

    private Integer pageNum = 1; //页码

    private Integer pageSize = 10; //当前页数


    private String _queryString; //原生的查询条件
}
